package com.ruoyi.web.controller.app.api.controller;

import com.ruoyi.applet.appletBanner.domain.AppletBanner;
import com.ruoyi.applet.appletBanner.service.IAppletBannerService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @描述: 通用接口
 * @Author: TangYuan
 * @Date: 2024/8/20 10:35
 */
@RestController
@RequestMapping("/wxApi/general")
public class GeneralAppletController {
    
    @Resource
    private IAppletBannerService appletBannerService;
    
    /**
     * 获取轮播图
     */
    @GetMapping("/getBanner")
    public AjaxResult getBanner() {
        List<AppletBanner> bannerslist = appletBannerService.selectAppletBannerListApplet(null);
        return AjaxResult.success(bannerslist);
    }
}
